package com.dd.cloud.user.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dd.cloud.user.entity.admin.ProblemHelp;
import com.dd.cloud.user.req.admin.GetProblemHelpPageReq;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author czg
 * @since 2022-05-07
 */
public interface ProblemHelpMapper extends BaseMapper<ProblemHelp> {
    /**
     * 查询问题帮助
     *
     * @return
     */
    List<ProblemHelp> getProblemList();

    /**
     * 问题帮助重排序
     */
    void updateProblemHelpReorder(Integer typeId);

    /**
     * 分页获取帮助列表
     */
    IPage<ProblemHelp> getProblemPage(IPage<ProblemHelp> page, GetProblemHelpPageReq req);
}
